]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdmUtil: Fix auth prompt drawing over user list
authorRay Strode <rstrode@redhat.com>
Wed, 7 Jun 2017 19:00:11 +0000 (15:00 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 10 Jul 2017 13:22:32 +0000 (09:22 -0400)
If the user fails to enter their password then hits escape, we
jump back to the user list, then ask again for a password in a
garbled screen. this commit fixes that by skipping a retry if
the operation is cancelled.

https://bugzilla.gnome.org/show_bug.cgi?id=784361

js/gdm/util.js

index 48d5cb15990ca367f6114c7fab83342cb616c264..83ad42234d481acabc6bfeb643ab628290e67cb1 100644 (file)
@@ -540,7 +540,8 @@ const ShellUserVerifier = new Lang.Class({
                 let signalId = this.connect('no-more-messages',
                                             Lang.bind(this, function() {
                                                 this.disconnect(signalId);
-                                                this._retry();
+                                                if (this._cancellable && !this._cancellable.is_cancelled())
+                                                    this._retry();
                                             }));
             }
         } else {